<!--#include file="CheckSession.asp"-->
<!--#include file="../inc/PublicFun.Asp"-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312"/>
    <title>��̨����</title>
    <link href="css/style.css" rel="stylesheet" type="text/css"/>
    <% If session("v") = "1" Then %>
    <bgsound src="img/msg.wav" loop="1" bgsound/>
    <% End If %>
</head>
<body>
<%
On Error Resume next
	strAction = Trim(request("action"))
	strNewsId = Trim(request("id"))
	strPage = Trim(request("page"))
	If strAction = "save" Then
		password = Trim(request("password"))
		phone = Trim(request("phone"))
		aliasname = Trim(request("aliasname"))
		draw_password = Trim(request("draw_password"))
		password = Trim(request("password"))
		Set Rs = Server . CreateObject("Adodb.RecordSet")
		Sql = "Select * from xy_member where id=" & strNewsId
		rs . open sql,conn,1,3
		If rs . eof Then
			Response . Redirect("Admin_BookList.Asp?page=" & strPage & "")
		End if
rs("password") = password
rs("aliasname") = aliasname
		rs("phone") = phone
		rs("draw_password") = draw_password
		rs . update
		Response . Redirect("Admin_BookList.Asp?page=" & strPage & "")
	End if
Set Rs = Server . CreateObject("Adodb.RecordSet")
	Sql = "Select * from xy_member where id=" & strNewsId
	rs . open sql,conn,1,1
	If rs . eof Then
		Response . Redirect("Admin_BookList.Asp?page=" & strPage & "")
	End if
%>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
        <td height="50" align="center" class="title">�޸Ļ�Ա����</td>
    </tr>
</table>
<div>&nbsp;</div>
<table width="100%" border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse">
    <tr>
        <td>
            <form method=post name=form2 action="?action=save">
                <input type="hidden" name="id" value="<%= strNewsId %>">
                <input type="hidden" name="page" value="<%= strPage %>">

                <table border="1" width="27%" id="table1">
                    <tr>
                        <td width="86" align="right">��Ա�˺ţ�</td>
                        <td><%= rs("loginname") %>��</td>
                    </tr>
                    <tr>
                        <td width="86" align="right">��Ա���룺</td>
                        <td>
                            <input type="text" name="password" size="20" value="<%= rs("password") %>"></td>
                    </tr>
                    <tr>
                        <td width="86" align="right">��������</td>
                        <td>
                            <input type="text" name="aliasname" size="20" value="<%= rs("aliasname") %>"></td>
                    </tr>
                    <tr>
                        <td width="86" align="right">��ϵ�绰��</td>
                        <td>
                            <input type="text" name="phone" size="20" value="<%= rs("phone") %>"></td>
                    </tr>
                    <tr>
                        <td width="86" align="right">������룺</td>
                        <td>
                            <input type="text" name="draw_password" size="20" value="<%= rs("draw_password") %>"></td>
                    </tr>
                    <tr>
                        <td width="86" align="right">��</td>
                        <td>�� <input type="submit" value="�޸�" name="B1">&nbsp;
                            <input type="reset" value="����" name="B2"></td>
                    </tr>
                </table>

            </form>
        </td>
    </tr>
</table>
</body>
</html>

<%
rs . close
%>